home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktimeintro / wiredsprites / common files / winframework.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-06  |  1.9 KB  |  85 lines

  1. //////////
  2. //
  3. //    File:        WinFramework.h
  4. //
  5. //    Contains:    Basic functions for windows, menus, and similar things.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //       
  13. //       <1>         11/05/99    rtm        first file
  14. //       
  15. //////////
  16.  
  17. #pragma once
  18.  
  19.  
  20. //////////
  21. //       
  22. // header files
  23. //       
  24. //////////
  25.  
  26. #ifndef __Prefix_File__
  27. #include "WinPrefix.h"
  28. #endif
  29.  
  30. #ifndef _WINDOWS_
  31. #include <windows.h>
  32. #endif
  33.  
  34. #ifndef __FIXMATH__
  35. #include <FixMath.h>
  36. #endif
  37.  
  38. #ifndef __QTML__
  39. #include <QTML.h>
  40. #endif
  41.  
  42. #ifndef __SCRAP__
  43. #include <Scrap.h>
  44. #endif
  45.  
  46. #ifndef _STDLIB_H
  47. #include <stdlib.h>
  48. #endif
  49.  
  50. #ifndef __malloc_h__ 
  51. #include <malloc.h>
  52. #endif
  53.  
  54. #include "ComFramework.h"
  55. #include "ComResource.h"
  56.  
  57.  
  58. //////////
  59. //
  60. // constants
  61. //
  62. //////////
  63.  
  64. #define    WM_PUMPMOVIE                (WM_USER+0)
  65. #define    WM_OPENDROPPEDFILES            (WM_USER+1)
  66. #define USEEXPLORERSTYLE            (LOBYTE(LOWORD(GetVersion()))>=4)
  67. #define kOpenDialogCustomData        11                        // an arbitrary value that allows our dialog proc to detect the Open File dialog box
  68. #define kAlertMessageMaxLength        256                        // maximum length of a message in the QTFrame_ShowCautionAlert message box
  69.  
  70. #define kWinFilePathSeparator        (char)'\\'                // on Windows, the file path separator is '\\'
  71.  
  72.  
  73. //////////
  74. //
  75. // function prototypes
  76. //       
  77. //////////
  78.  
  79. LRESULT CALLBACK             QTFrame_FrameWndProc (HWND theWnd, UINT theMessage, UINT wParam, LONG lParam);
  80. LRESULT CALLBACK             QTFrame_MovieWndProc (HWND theWnd, UINT theMessage, UINT wParam, LONG lParam);
  81. void                        QTFrame_OpenCommandLineMovies (LPSTR theCmdLine);
  82. int                            QTFrame_ShowCautionAlert (HWND theWnd, UINT theID, UINT theIconStyle, UINT theButtonStyle, LPSTR theTitle, LPSTR theArgument);
  83. static UINT APIENTRY        QTFrame_DialogProcedure (HWND theDialog, UINT theMessage, WPARAM wParam, LPARAM lParam);
  84. static void                    QTFrame_CalcWindowMinMaxInfo (HWND theWnd, LPMINMAXINFO lpMinMax);
  85.